package com.cskaoyan.model.bo.goods.create;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @program: project-market
 * @description:
 * @author: Jesson Guo
 * @create: 2021-11-30 14:13
 **/
@Data
public class GoodsCreateSpecificationsBO {
    private String specification;
    private String value;
    private String picUrl;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private boolean deleted;



    public void setAddTime(Date addTime) {
        if (addTime==null){addTime=new Date();}
        this.addTime = addTime;
    }


    public void setUpdateTime(Date updateTime) {
        if (updateTime==null){updateTime=new Date();}
        this.updateTime = updateTime;
    }


    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
